//
//  AppDelegate.m
//  ActivityParser
//
//  Created by Alejandro Uño on 7/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "AppDelegate.h"
#import "LayerView.h"

@implementation AppDelegate

@synthesize window = _window;

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
	// Insert code here to initialize your application

	// Init the window
	NSRect windowRect = NSMakeRect(10.0f, 10.0f, 800.0f, 600.0f);
	
	_window = [[NSWindow alloc] initWithContentRect:windowRect 
												   styleMask:( NSResizableWindowMask | NSClosableWindowMask | NSTitledWindowMask) 
													 backing:NSBackingStoreBuffered defer:NO];
	
	[_window makeKeyAndOrderFront:nil];
//	[_window set]
	
	NSView *layerView = [LayerView create];
	
	[_window setContentView:layerView];
}

- (void) dealloc
{
	NSLog(@"AppDelegate::dealloc...");
	[_window release];
	[super dealloc];
}

@end
